<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePurchaseOrderProductVoucher extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('purchase_order_product_voucher', function($newtable)
		{	
			$newtable->integer('PURCHASE_ORDER_PRODUCT_id');
			$newtable->string('product_name', 125);
			$newtable->string('supplier_name', 125);
			$newtable->string('redeem_address');
			$newtable->string('voucher_owner', 75);
			$newtable->string('voucher_code', 50);
			$newtable->text('voucher_description');
			$newtable->integer('added_by');
			$newtable->integer('modified_by');
			$newtable->timestamps();
			$newtable->boolean('archived')->default(false);
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		//
	}

}
